import { request } from "@/utils/request.js";
/**
 * 获取用户消息通知清册
 * @param params
 * @returns {Promise<unknown>}
 */
export const getUserMsgListApi = params => {
    return request({
        url: '/ht-nonrealtime-gameservice/userMsgNotice/getUserMsgNoticeList',
        method: 'POST',
        data: params
    })
}

/**
 * 操作消息已读
 * @param id
 * @returns {Promise<unknown>}
 */
export const makeUserMsgReadApi = id => {
    return request({
        url: `/ht-nonrealtime-gameservice/userMsgNotice/optionUserMsgIsRead?id=${id}`,
        method: 'GET'
    })
}
